package com.geekaca.news.mapper;

import com.geekaca.news.domain.Link;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Peter
* @description 针对表【tb_link】的数据库操作Mapper
* @createDate 2024-02-24 16:13:11
* @Entity com.geekaca.news.domain.Link
*/
@Mapper
public interface LinkMapper {

    int deleteByPrimaryKey(@Param("linkId")Long id);

    int insert(Link record);

    int insertSelective(Link record);

    Link selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Link record);

    int updateByPrimaryKey(Link record);

    int getTotalLinks();

    List<Link> getAllLinks(@Param("start") Integer start, @Param("pageSize") Integer pageSize);

    int updateLink(Link link);
}
